﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InfonavaEye.model
{
    /// <summary>
    /// 钉子
    /// </summary>
    public class Nail
    {
        /// <summary>
        /// 钉盒设置
        /// </summary>
        public BoxModel boxModel { get; set; }

        /// <summary>
        /// 区域编码
        /// </summary>
        public BoxArea area { get; set; }

        /// <summary>
        /// 在模板中的区域中的位置和大小（x,y）
        /// </summary>
        public Rectangle location { get; set; }

        /// <summary>
        /// 实际坐标
        /// </summary>
        public XYZ actualXyz { get; set; }

        /// <summary>
        /// 在二维空间中的X ,y 序号 
        /// </summary>
        public Point point { get; set; }

        /// <summary>
        /// OCR识别出的字符
        /// </summary>
        public string code { get;set; }

        /// <summary>
        /// 批号
        /// </summary>
        public string lotNo { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public NailStatus status { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime updateTime { get; set; }
    }

    public enum NailStatus { 
        Normal,//正常
        Selected,//选中
        OCRSuccess,//识别成功
        OCRFail,//识别失败
    }
}
